package com.sfh.cpc.com.req;

import android.text.TextUtils;

import com.sfh.cpc.com.entity.EMass;
import com.sfh.cpc.com.entity.RspBase;
import com.sfh.lib.mvvm.service.BaseViewModel;

/***
 * 新增社团
 */
public class ReqMassAdd extends ReqBase<RspBase<Boolean>> {
	// 头像
	String url;
	// 标题
	String title;
	// 简介
	String content;
	// 特权查看 1:需要否则不需要
	String vip;
	long wealth;
	public ReqMassAdd() {
		super("mass/massAdd");
	}

	public boolean chechParams(BaseViewModel liveData){
		if (TextUtils.isEmpty(url)){
			liveData.showToast("请选择图片");
			return true;
		}
		if (TextUtils.isEmpty(title)){
			liveData.showToast("请输入标题");
			return true;
		}
		if (TextUtils.isEmpty(content)){
			liveData.showToast("请输入简介");
			return true;
		}
		return false;
	}

	public void setWealth(long wealth) {
		this.wealth = wealth;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getVip() {
		return vip;
	}

	public void setVip(String vip) {
		this.vip = vip;
	}

}
